home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-11-11 | 3.7 KB | 149 lines | [TEXT/MPS ] |
- {
- File: TSMTE.p
-
- Copyright: © 1984-1994 by Apple Computer, Inc.
- All rights reserved.
-
- Version: Universal Interfaces 2.0a3 ETO #16, MPW prerelease. Friday, November 11, 1994.
-
- Bugs?: If you find a problem with this file, send the file and version
- information (from above) and the problem description to:
-
- Internet: apple.bugs@applelink.apple.com
- AppleLink: APPLE.BUGS
-
- }
-
- {$IFC UNDEFINED UsingIncludes}
- {$SETC UsingIncludes := 0}
- {$ENDC}
-
- {$IFC NOT UsingIncludes}
- UNIT TSMTE;
- INTERFACE
- {$ENDC}
-
- {$IFC UNDEFINED __TSMTE__}
- {$SETC __TSMTE__ := 1}
-
- {$I+}
- {$SETC TSMTEIncludes := UsingIncludes}
- {$SETC UsingIncludes := 1}
-
-
- {$IFC UNDEFINED __TEXTEDIT__}
- {$I TextEdit.p}
- {$ENDC}
- { Quickdraw.p }
- { Types.p }
- { ConditionalMacros.p }
- { MixedMode.p }
- { QuickdrawText.p }
-
- {$IFC UNDEFINED __DIALOGS__}
- {$I Dialogs.p}
- {$ENDC}
- { Errors.p }
- { Memory.p }
- { Windows.p }
- { Events.p }
- { OSUtils.p }
- { Controls.p }
- { Menus.p }
-
- {$IFC UNDEFINED __APPLEEVENTS__}
- {$I AppleEvents.p}
- {$ENDC}
- { EPPC.p }
- { PPCToolbox.p }
- { AppleTalk.p }
- { Processes.p }
- { Files.p }
- { Notification.p }
-
- {$IFC UNDEFINED __TEXTSERVICES__}
- {$I TextServices.p}
- {$ENDC}
- { Components.p }
-
- {$PUSH}
- {$ALIGN MAC68K}
- {$LibExport+}
-
- CONST
- kTSMTESignature = 'tmTE';
- kTSMTEInterfaceType = kTSMTESignature;
- kTSMTEDialog = 'tmDI';
-
- { Gestalt}
- gestaltTSMTEAttr = kTSMTESignature;
- gestaltTSMTEPresent = 0;
- gestaltTSMTE = 0; { gestaltTSMTE is old name for gestaltTSMTEPresent }
-
- gestaltTSMTEVersion = 'tmTV';
- gestaltTSMTE1 = $100;
-
- { update flag for TSMTERec}
- kTSMTEAutoScroll = 1;
-
- { callback procedure definitions}
- TYPE
- TSMTEPreUpdateProcPtr = ProcPtr; { PROCEDURE TSMTEPreUpdate(textH: TEHandle; refCon: LONGINT); }
- TSMTEPostUpdateProcPtr = ProcPtr; { PROCEDURE TSMTEPostUpdate(textH: TEHandle; fixLen: LONGINT; inputAreaStart: LONGINT; inputAreaEnd: LONGINT; pinStart: LONGINT; pinEnd: LONGINT; refCon: LONGINT); }
- TSMTEPreUpdateUPP = UniversalProcPtr;
- TSMTEPostUpdateUPP = UniversalProcPtr;
-
- TSMTERec = RECORD
- textH: TEHandle;
- preUpdateProc: TSMTEPreUpdateUPP;
- postUpdateProc: TSMTEPostUpdateUPP;
- updateFlag: LONGINT;
- refCon: LONGINT;
- END;
- TSMTERecPtr = ^TSMTERec;
- TSMTERecHandle = ^TSMTERecPtr;
-
- TSMDialogRecord = RECORD
- fDialog: DialogRecord;
- fDocID: TSMDocumentID;
- fTSMTERecH: TSMTERecHandle;
- fTSMTERsvd: ARRAY [0..2] OF LONGINT; { reserved}
- END;
- TSMDialogPeek = ^TSMDialogRecord;
-
-
- CONST
- uppTSMTEPreUpdateProcInfo = $000003C0; { PROCEDURE (4 byte param, 4 byte param); }
- uppTSMTEPostUpdateProcInfo = $000FFFC0; { PROCEDURE (4 byte param, 4 byte param, 4 byte param, 4 byte param, 4 byte param, 4 byte param, 4 byte param); }
-
- FUNCTION NewTSMTEPreUpdateProc(userRoutine: TSMTEPreUpdateProcPtr): TSMTEPreUpdateUPP;
- {$IFC NOT GENERATINGCFM }
- INLINE $2E9F;
- {$ENDC}
-
- FUNCTION NewTSMTEPostUpdateProc(userRoutine: TSMTEPostUpdateProcPtr): TSMTEPostUpdateUPP;
- {$IFC NOT GENERATINGCFM }
- INLINE $2E9F;
- {$ENDC}
-
- PROCEDURE CallTSMTEPreUpdateProc(textH: TEHandle; refCon: LONGINT; userRoutine: TSMTEPreUpdateUPP);
- {$IFC NOT GENERATINGCFM}
- INLINE $205F, $4E90;
- {$ENDC}
-
- PROCEDURE CallTSMTEPostUpdateProc(textH: TEHandle; fixLen: LONGINT; inputAreaStart: LONGINT; inputAreaEnd: LONGINT; pinStart: LONGINT; pinEnd: LONGINT; refCon: LONGINT; userRoutine: TSMTEPostUpdateUPP);
- {$IFC NOT GENERATINGCFM}
- INLINE $205F, $4E90;
- {$ENDC}
-
- {$ALIGN RESET}
- {$POP}
-
- {$SETC UsingIncludes := TSMTEIncludes}
-
- {$ENDC} {__TSMTE__}
-
- {$IFC NOT UsingIncludes}
- END.
- {$ENDC}
-